package com.hama.zea.util;

public class StrUtil {

	public static void main(String[] args) {
		System.out.println(isDigitalString("123qwe123"));
	}
	
	public static boolean isDigitalString(String str){
		char c[]=str.toCharArray();
		boolean flag=true;//
		for (char d : c) {
			if(!Character.isDigit(d)){
				//如果不是就直接return不继续判断了
				return false;
			}
		}
		return flag;
	}

}
